import { Spin } from "antd"
import type { LoadingPageProps } from "../../type/HomeType"
import './LoadingContentStyle.sass'
import { LoadingOutlined } from "@ant-design/icons"

function LoadingContent (props: LoadingPageProps) {
  return (
    props.loading &&
      <div className="loading">
        <Spin className="loading-content" indicator={<LoadingOutlined spin />} style={{ color: '#cdcdcd' }} size="large" />加载中...
      </div>
  )
}

export default LoadingContent
